package com.ruoyi.sale.service;

import java.util.List;
import com.ruoyi.sale.domain.SaleOrderDetail;

/**
 * 销售订单明细Service接口
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
public interface ISaleOrderDetailService 
{
    /**
     * 查询销售订单明细
     * 
     * @param id 销售订单明细主键
     * @return 销售订单明细
     */
    public SaleOrderDetail selectSaleOrderDetailById(Long id);

    /**
     * 查询销售订单明细列表
     * 
     * @param saleOrderDetail 销售订单明细
     * @return 销售订单明细集合
     */
    public List<SaleOrderDetail> selectSaleOrderDetailList(SaleOrderDetail saleOrderDetail);

    /**
     * 新增销售订单明细
     * 
     * @param saleOrderDetail 销售订单明细
     * @return 结果
     */
    public int insertSaleOrderDetail(SaleOrderDetail saleOrderDetail);

    /**
     * 修改销售订单明细
     * 
     * @param saleOrderDetail 销售订单明细
     * @return 结果
     */
    public int updateSaleOrderDetail(SaleOrderDetail saleOrderDetail);

    /**
     * 批量删除销售订单明细
     * 
     * @param ids 需要删除的销售订单明细主键集合
     * @return 结果
     */
    public int deleteSaleOrderDetailByIds(Long[] ids);

    /**
     * 删除销售订单明细信息
     * 
     * @param id 销售订单明细主键
     * @return 结果
     */
    public int deleteSaleOrderDetailById(Long id);

    /**
     * @description: 根据订单号查询订单明细
     * @param: id
     * @return: com.ruoyi.common.core.web.domain.AjaxResult
     * @author clqlongbao
     * @date: 2022/9/2 22:47
     */
    List<SaleOrderDetail> selectSaleOrderdetailByOrderNo(Long orderNo);
}
